package com.zy.util;

import java.io.File;

import org.dom4j.Document;
import org.dom4j.io.SAXReader;

public class Dom4jResolutionXml {
	public static Document getDocument(String xmlUrl) throws Exception {
		//初始化一个文件对象
		File file = new File(xmlUrl);
		//创建解析对象
		SAXReader reader = new SAXReader();
		//创建一个Document对象
		Document doc = reader.read(file);
		return doc;
	}
}
